package com.leeon.container.foreach;

import java.util.Arrays;

public class ArrayIsNotIterable {

    public static<T> void display(Iterable<T> ib){
        for (T t: ib) {
            System.out.print(t + "");
        }
    }
    public static void main(String[] args){
        display(Arrays.asList(1,2,3));
        String[] strings = {"A","B","C"};
        display(Arrays.asList(strings));
    }

}
